const Auth_title = "token"
const identity = "identity"
const getToken = () => {
    return localStorage.getItem(Auth_title)
}

const setToken = (key) => {
    localStorage.setItem(Auth_title, key)
}

const removeToken = () => {
    localStorage.removeItem(Auth_title)
}

const getRole = () => {
    return localStorage.getItem(identity)
}

const setRole = (key) => {
    localStorage.setItem(identity, key)
}

const removeRole = () => {
    localStorage.removeItem(identity)
}


export {
    getToken,
    setToken,
    removeToken,
    getRole,
    setRole,
    removeRole
}
